package com.lsjenglish.englishstudy.service.impl;

import com.lsjenglish.englishstudy.domain.ShowEnglishWorldEntity;
import com.lsjenglish.englishstudy.mapper.ShowEnglishWorldMapper;
import com.lsjenglish.englishstudy.service.IShowEnglishWorldService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/7/19 20:24
 */
@Service
@AllArgsConstructor
public class ShowEnglishWorldServiceIml implements IShowEnglishWorldService {
    private final ShowEnglishWorldMapper showEnglishWorldMapper;

    /**
     * 返回主界面全部信息
     *
     * @return 信息
     */
    @Override
    public List<ShowEnglishWorldEntity> englishWorld() {
        return showEnglishWorldMapper.englishWorld();
    }

    /**
     * 信息
     *
     * @param showEnglishWorldEntity 要修改的信息
     * @return 信息
     */
    @Override
    public int updateSword(ShowEnglishWorldEntity showEnglishWorldEntity) {
        return showEnglishWorldMapper.updateSword(showEnglishWorldEntity);
    }
}
